package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class TdCommodityUpdateOrderMsgReq implements Serializable {

    @ApiModelProperty(value = "订单编号", required = true)
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;

    @ApiModelProperty("门店id")
    @NotNull(message = "门店编号不能为空")
    private Long storeId;

    @ApiModelProperty("订单状态,  0-待付款,1-已支付(用户)/待接单,  2-已支付(用户)/已完成, 3-待接单售后申请，4-售后申请, 5-已退款, -1-取消订单")
    @NotNull(message = "订单状态不正确")
    @Range(min = -1, max = 5, message = "订单状态不正确")
    private Byte orderStatus;


}
